package com.biz.primus.model.misc.vo;


import com.biz.primus.model.misc.enums.ApiExceptionType;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @author yanweijin
 * @date 2017/5/30
 */
@Getter
@Setter
@NoArgsConstructor
public class SendResult {

    private ApiExceptionType code = ApiExceptionType.SUCCESS;

    private String message = "成功";

    private String extraMessage;

    public SendResult(ApiExceptionType code, String extraMessage) {
        this.code = code;
        this.message = code.getDesc();
        this.extraMessage = extraMessage;
    }

}
